////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011-2012 www.iflytek.com. All Rights Reserved.
//  This software for customer relationship management system, developed by Noo team.
//  Software code and design for the team, copy rights reserved.
////////////////////////////////////////////////////////////////////////////////

package com.iflytek.ci.cums.service;

import com.iflytek.ci.cums.domain.Role;
import com.iflytek.framework.pagination.PaginationCriteria;
import com.iflytek.framework.pagination.PaginationResult;

import java.util.List;

/**
 * <p>
 * Role Service.
 * </p>
 *
 * @author poplar.yfyang
 * @version 1.0 2012-11-17 9:38 PM
 * @since JDK 1.5
 */
public interface RoleService {

	/**
	 * 得到用户权限
	 *
	 * @param user 用户id
	 * @return role and permissions.
	 */
	List<Role> user_role(long user);

	/**
	 * 得到所有角色的分页列表
	 *
	 * @param criteria 分页信息
	 * @return 角色
	 */
	PaginationResult<Role> find_role_list(PaginationCriteria criteria);
}
